package com.yanshibo.bean;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Record {
	private Integer id;
	private Integer studentId;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date startTime;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date endTime;
	private Integer dromId;
	
	//扩展字段
	private String fname;
	private String dname;
	private String sname;
	
	public String getSname() {
		return sname;
	}
	public void setSname(String sname) {
		this.sname = sname;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getStudentId() {
		return studentId;
	}
	public void setStudentId(Integer studentId) {
		this.studentId = studentId;
	}
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	public Integer getDromId() {
		return dromId;
	}
	public void setDromId(Integer dromId) {
		this.dromId = dromId;
	}
	public String getFname() {
		return fname;
	}
	public void setFname(String fname) {
		this.fname = fname;
	}
	public String getDname() {
		return dname;
	}
	public void setDname(String dname) {
		this.dname = dname;
	}
	@Override
	public String toString() {
		return "Record [id=" + id + ", studentId=" + studentId + ", startTime=" + startTime + ", endTime=" + endTime
				+ ", dromId=" + dromId + ", fname=" + fname + ", dname=" + dname + "]";
	}
	public Record(Integer id, Integer studentId, Date startTime, Date endTime, Integer dromId, String fname,
			String dname) {
		super();
		this.id = id;
		this.studentId = studentId;
		this.startTime = startTime;
		this.endTime = endTime;
		this.dromId = dromId;
		this.fname = fname;
		this.dname = dname;
	}
	public Record() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
}	
